/** 
 * Project Name:ecs-channel 
 * File Name:OrderListGetRequest.java 
 * Package Name:com.jala.ecschannel.isv.xhs.api.request 
 * Date:2018年5月14日下午2:36:56 
 * Copyright (c) 2018, liuyinsong@jala.com.cn All Rights Reserved. 
 * 
 */  
package com.grape.ciq.api.redbook.request;

import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.grape.ciq.api.redbook.ApiRuleException;
import com.grape.ciq.api.redbook.base.XHSRequest;
import com.grape.ciq.api.redbook.model.ItemsListGet;
import com.grape.ciq.api.redbook.response.ItemsListGetResponse;

/** 
 * ClassName: OrderListGetRequest <br/> 
 * Function: TODO ADD FUNCTION. <br/> 
 * date: 2018年5月14日 下午2:36:56 <br/> 
 * @author liuyinsong
 */
@JsonIgnoreProperties(ignoreUnknown=true) 
public class ItemsListGetRequest extends XHSRequest<ItemsListGetResponse> {

	private static final long serialVersionUID = 8433120831429671001L;

	//URL:/ark/open_api/v1/items/lite{?status}{?page_no}{?page_size}{?create_time_from}{?create_time_to}{update_time_from}{?update_time_to}{?buyable}{?stock_gte}{?stock_lte}
	@Override
	public void check() throws ApiRuleException {
	}

	@Override
	public String getMethodUrl() {
//		return "/ark/open_api/v0/items?";
		return "/ark/open_api/v1/items/lite?";
	}
	
	@Override
	public String getMethod() {
		return "GET";
	}

	@Override
	public Map<String, Object> getParams() {
		Map<String, Object> map = new HashMap<String, Object>();
//		map.put("status", itemsListGet.getStatus());
//		map.put("page_no", itemsListGet.getPage_no());
//		map.put("page_size", itemsListGet.getPage_size());
//		map.put("buyable", itemsListGet.isBuyable());
//		map.put("create_time_from", itemsListGet.getCreate_time_from());
//		map.put("create_time_to", itemsListGet.getCreate_time_to());
//		map.put("update_time_from", itemsListGet.getUpdate_time_from());
//		map.put("update_time_to", itemsListGet.getUpdate_time_to());
//		map.put("stock_gte", itemsListGet.getStock_gte());
//		map.put("stock_lte", itemsListGet.getStock_lte());
		return map;
	}

	@Override
	public String getUrlParams() {
		return "";
	}
	
	private ItemsListGet itemsListGet;

	public ItemsListGet getItemsListGet() {
		return itemsListGet;
	}

	public void setItemsListGet(ItemsListGet itemsListGet) {
		this.itemsListGet = itemsListGet;
	}

}
